// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.Nodes;

public sealed partial class Process
{
	/// <summary>
	/// <para>
	/// Contains CPU statistics for the node.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("cpu")]
	public Elastic.Clients.Elasticsearch.Serverless.Nodes.Cpu? Cpu { get; init; }

	/// <summary>
	/// <para>
	/// Maximum number of file descriptors allowed on the system, or <c>-1</c> if not supported.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("max_file_descriptors")]
	public int? MaxFileDescriptors { get; init; }

	/// <summary>
	/// <para>
	/// Contains virtual memory statistics for the node.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("mem")]
	public Elastic.Clients.Elasticsearch.Serverless.Nodes.MemoryStats? Mem { get; init; }

	/// <summary>
	/// <para>
	/// Number of opened file descriptors associated with the current or <c>-1</c> if not supported.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("open_file_descriptors")]
	public int? OpenFileDescriptors { get; init; }

	/// <summary>
	/// <para>
	/// Last time the statistics were refreshed.
	/// Recorded in milliseconds since the Unix Epoch.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("timestamp")]
	public long? Timestamp { get; init; }
}